package pl.edu.agh.mgr.hotel.entities;


import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Entity
@Table(name = "room_type")
public class RoomType {

	@Id
	@NotNull
	@Size(max = 50)
	private String name;

	@NotNull
	private int dataLevel;
	
	public RoomType() {
	}

	public RoomType(String name, int dataLevel) {
		super();
		this.name = name;
		this.dataLevel = dataLevel;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public int getDataLevel() {
		return dataLevel;
	}

	public void setDataLevel(int dataLevel) {
		this.dataLevel = dataLevel;
	}

}
